package dq.study.shiro.filter;

import org.apache.shiro.web.filter.PathMatchingFilter;

import javax.servlet.Filter;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * 路径匹配
 *
 * @author dongqun
 * @date 2020/4/15 13:22
 */
public class MyPathMatchingFilter extends PathMatchingFilter {
    @Override
    public Filter processPathConfig(String path, String config) {
        return super.processPathConfig(path, config);
    }

    @Override
    protected String getPathWithinApplication(ServletRequest request) {
        return super.getPathWithinApplication(request);
    }

    @Override
    protected boolean pathsMatch(String path, ServletRequest request) {
        return super.pathsMatch(path, request);
    }

    @Override
    protected boolean pathsMatch(String pattern, String path) {
        return super.pathsMatch(pattern, path);
    }

    @Override
    protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
        return super.preHandle(request, response);
    }

    @Override
    protected boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception {
        return super.onPreHandle(request, response, mappedValue);
    }

    @Override
    protected boolean isEnabled(ServletRequest request, ServletResponse response, String path, Object mappedValue) throws Exception {
        return super.isEnabled(request, response, path, mappedValue);
    }
}
